package com.tbit.uqbike.object.pojo;

import com.tbit.uqbike.annos.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;


/**
 * 巡检日志对象 patrol_log
 *
 * @author jing
 * @date 2021-04-29
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class PatrolLog {
    private static final Long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Integer patrolLogId;

    /**
     * 运营区域id
     */
    private Integer accountId;

    /**
     * 设备id
     */
    private Integer machineId;

    /**
     * 车辆编码
     */
    @Excel(name = "车辆编号", sort = 0)
    private String userCode;

    /**
     * 设备编号
     */
    private String machineNO;

    /**
     * 运维人员id
     */
    private Integer accountUserId;

    /**
     * 运维人员姓名
     */
    @Excel(name = "运维人名称", sort = 1)
    private String userName;

    /**
     * 开始时间
     */
    @Excel(name = "开始时间", dateFormat = "yyyy-MM-dd HH:mm:ss", sort = 3)
    private Date startTime;

    /**
     * 结束时间
     */
    @Excel(name = "结束时间", dateFormat = "yyyy-MM-dd HH:mm:ss", sort = 4)
    private Date endTime;

    /**
     * 车辆照片
     */
    private String imageId;

    /**
     * 是否有效
     */
    @Excel(name = "是否有效", readConverterExp = "0=无效,1=有效", sort = 5)
    private Integer isValid;

    @Excel(name = "运维人员手机号", targetAttr = "phone", sort = 2)
    private AccountUser accountUser;

    @Excel(name = "备注", sort = 6)
    private String remark;


}
